#!/bin/bash
echo "正在查找并停止wxApp.jar应用进程..."

# 查找wxApp.jar相关的Java进程
PID=$(ps -ef | grep java | grep wxApp.jar | grep -v grep | awk '{print $2}')

if [ -n "$PID" ]; then
    echo "找到进程ID: $PID"
    kill -9 $PID
    echo "已停止进程: $PID"
else
    echo "未找到运行的wxApp.jar应用进程"
fi

echo "wxApp.jar应用进程停止完成"